1 - (Time : 1:30 minutes, Each group maximum 4 children).
Desktop or Laptop computer,CPX Board,USB Cable, Crickit, 5v battery
MG995 servo motor
Telescopic slide (drawer slide/linear rail)
Jumper wires
2 Limit switches (for left & right ends)
Add the limit switches to the bottom of the rack and top of the rack. The limit switch has to be attached firmly so that it doesnt move away or fall off. Follow the demo in this video for the assembly
Recall the testing code for the limit switches from the previous lesson. Use that code to test the connections and working of the limit switches
Implement this pseudocode to simulate the vertical lift with limits
Click here to see the solution video for Exercise 2
Click here to view the code for Exercise 2
Click here to view the code explanation for Exercise 2
Observe that the pinion will slide down the rack on its own even without throttle once it hits the limit switch at the top. How do we make it stationary at the top?
In real elevators, what other sensors or safety systems might be added besides limit switches and why? Discuss
What will happen if in the middle of the vertical lift, the battery runs out of power? Discuss